package memorphic.slide
{
	import memorphic.core.ICommand;

	public class NavigationCommand implements ICommand
	{
		
		protected var stateContext:IStateView;
		protected var stateURI:String;
		
		public function NavigationCommand(stateContext:IStateView, stateURI:String)
		{
			this.stateContext = stateContext;
			this.stateURI = stateURI;
		}
		

		public function execute():void
		{
			applyStateChange();
		}
		
		
		
		protected function applyStateChange():void
		{
			stateContext.stateManager.stateURI = stateURI;
		}

		
	}
}